﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAOAuction;
using DTOAuction;


namespace BUSAuction
{
    public class BUSSinhVien
    {
        public int themSinhVien(int maSinhVien, int maKhoa, int maKhoaHoc, string hoTen, int gioiTinh, DateTime ngaySinh, string noiSinh, string diaChi, string email, string soDienThoai, string matKhau, string tenDangNhap)
        {
            DAOSinhVien DAOSinhVien = new DAOSinhVien();          
            return DAOSinhVien.themSinhVien(maSinhVien, maKhoa, maKhoaHoc, hoTen, gioiTinh, ngaySinh, noiSinh, diaChi, email, soDienThoai, matKhau, tenDangNhap);
        }

		/// <summary>
		/// author: hqlam
		/// </summary>
		public static bool kiemTraThongTinSinhVien(int maSinhVien)
		{
			DAOSinhVien.layThongTinSinhVien(maSinhVien);
			return true;
		}

		/// <summary>
		/// author: hqlam
		/// </summary>
		public static SINHVIEN layThongTinSinhVien(int maSinhVien)
		{
			SINHVIEN res = DAOSinhVien.layThongTinSinhVien(maSinhVien);
			res.KHOA = null;
			res.KHOAHOC = null;
			res.KHOALUANTOTNGHIEP = null;
			res.DANGKIHOC_KETQUAs = null;
			return res;
		}
    }
}
